/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_ArticleVO_ } from '../models/BaseResponse_ArticleVO_';

import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';

export class ArticleControllerService {

    /**
     * getArticleById
     * @param articleUrl 
     * @param authorId 
     * @param collects 
     * @param comments 
     * @param content 
     * @param currentPage 
     * @param description 
     * @param id 
     * @param likes 
     * @param pageSize 
     * @param tags 
     * @param title 
     * @param type 
     * @param view 
     * @returns BaseResponse_ArticleVO_ OK
     * @throws ApiError
     */
    public static getArticleByIdUsingGet(
articleUrl?: string,
authorId?: number,
collects?: number,
comments?: string,
content?: string,
currentPage?: number,
description?: string,
id?: number,
likes?: number,
pageSize?: number,
tags?: string,
title?: string,
type?: number,
view?: number,
): CancelablePromise<BaseResponse_ArticleVO_> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/api/article/get/VO',
            query: {
                'articleUrl': articleUrl,
                'authorId': authorId,
                'collects': collects,
                'comments': comments,
                'content': content,
                'currentPage': currentPage,
                'description': description,
                'id': id,
                'likes': likes,
                'pageSize': pageSize,
                'tags': tags,
                'title': title,
                'type': type,
                'view': view,
            },
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

}
